﻿using System;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Collections.Generic;
using ECRMS.Biz;
using ECRMS.Biz.Dom;

namespace ECRMS.Service
{
    [ServiceContract]
    public partial interface IIdxService
    {
        [OperationContract]
        List<EcIndex> GetCtIndexes(Guid parentIndexRefId);

        [OperationContract]
        void SaveIndex(EcIndex idx);
    }

    public partial class ECRService : IIdxService
    {

        List<EcIndex> IIdxService.GetCtIndexes(Guid parentIndexRefId)
        {
            EcIndexLogic logic = new EcIndexLogic();
            return logic.GetEcIndexes(parentIndexRefId);
        }

        void IIdxService.SaveIndex(EcIndex idx)
        {
            EcIndexLogic logic = new EcIndexLogic();
            logic.SaveEcIndex(idx);
        }
    }
}
